﻿@model Devbridge.IPolice.Web.Models.PoliceOfficer.OfficerListViewModel

@{
    ViewBag.Title = "Police Officers";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Police Officers</h2> 
@Html.ActionLink("Add New", "Add")
<ul>
    @foreach (var officer in Model.Officers)
    {
        <li>
            Officer: @officer.FullName 
            <br />
            Phone: @officer.PhoneNumber
            <br/>
            @Html.ActionLink(string.Format("Delete {0} officer", officer.FullName), "Delete", new { id = officer.Id })       
        </li>
    }
</ul>